package com.example.entity;/**
 * @author wangXiao
 */

/**
 * CREATE TABLE `todo_item` (
 * 	`id` INT(11) NOT NULL,
 * 	`category` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
 * 	`complete` BIT(1) NOT NULL,
 * 	`name` VARCHAR(255) NULL DEFAULT NULL COLLATE 'utf8mb4_unicode_ci',
 * 	PRIMARY KEY (`id`) USING BTREE
 * )
 * COLLATE='utf8mb4_unicode_ci'
 * ENGINE=InnoDB
 * ;
 */
public class TodoItem {
    private int id;
    private String category;
    private boolean complete;
    private String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public boolean isComplete() {
        return complete;
    }

    public void setComplete(boolean complete) {
    }

    // 带参构造函数
    public TodoItem(int id, String category, boolean complete, String name) {
        this.id = id;
        this.category = category;
        this.complete = complete;
        this.name = name;
    }
}
